Indexing the extended Dyck-CFL reachability for context-sensitive program analysis

نویسندگان

چکیده

Many context-sensitive dataflow analyses can be formulated as an extended Dyck-CFL reachability problem, where function calls and returns are modeled partially matched parentheses. Unfortunately, despite many works on the standard solving version is still of quadratic space complexity nearly cubic time complexity, significantly limiting scalability program analyses. This paper, for first to best our knowledge, presents a cheap approach transforming problem conventional graph reachability, much easier well-studied problem. transformation allows us benefit from recent advances in indexing schemes, making it possible answer any query analysis within almost constant plus only few extra spaces. We have implemented two common analyses, one determines pointer alias relations other tracks information flows. Experimental results demonstrate that, compared their original we achieve orders magnitude (10 2 × 10 5 ×) speedup at cost moderate overhead. Our implementation publicly available.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Scaling CFL-Reachability-Based Points-To Analysis Using Context-Sensitive Must-Not-Alias Analysis

Pointer analyses derived from a Context-Free-Language (CFL) reachability formulation achieve very high precision, but they do not scale well to compute the points-to solution for an entire large program. Our goal is to increase significantly the scalability of the currently most precise points-to analysis for Java. This CFL-reachability analysis depends on determining whether two program variab...

متن کامل

Conditional Dyck-CFL Reachability Analysis for Complete and Efficient Library Summarization

Library summarization is an effective way to accelerate the analysis of client code. However, information about the client is unknown at the library summarization, preventing complete summarization of the library. An existing approach utilizes tree-adjoining languages (TALs) to provide conditional summaries, enabling the summarization of a library under certain premises. However, the use of TAL...

متن کامل

An E � cient Algorithm for Solving the Dyck - CFL Reachability Problem on Trees ?

The context-free language (CFL) reachability problem is well known and studied in computer science, as a fundamental problem underlying many important static analyses such as points-to-analysis. Solving the CFL reachability problem in the general case is very hard. Popular solutions resorting to a graph traversal exhibit a time complexity of O(kn) for a grammar of size k. For Dyck CFLs, a parti...

متن کامل

An Efficient Algorithm for Solving the Dyck-CFL Reachability Problem on Trees

The context-free language (CFL) reachability problem is well known and studied in computer science, as a fundamental problem underlying many important static analyses such as points-to-analysis. Solving the CFL reachability problem in the general case is very hard. Popular solutions resorting to a graph traversal exhibit a time complexity of O(kn) for a grammar of size k. For Dyck CFLs, a parti...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: Proceedings of the ACM on programming languages

سال: 2022

ISSN: ['2475-1421']

DOI: https://doi.org/10.1145/3563339